<template>
	<view class="container">
		<!-- 顶部蓝框 -->
		<view class="header">
			<view class="header_top">
				<view class="header_left">
					<text class="colorfff font44">3.56 %</text>
					<text class="font26" style="color: #9caaf9;">预估年化收益率</text>
				</view>
				<view class="header_right">
					<text class="colorfff font44">60 天</text>
					<text class="font26" style="color: #9caaf9;">产品期限</text>
				</view>
			</view>
			<view class="header_bot font26">
				<text class="m_r10">限购1000</text>
				<text class="m_r10">50%AD积分</text>
				<text class="m_r10">50%现金</text>
			</view>
		</view>
		<!-- 产品周期 -->
		<view class="productCycle">
			<text class="font32">产品周期</text>
			<uni-steps class="m_t20" :options="list"/>
			<view class="list_date font26">
				<text v-for="(item, index) in listDate" :key="index">{{item.date}}</text>
			</view>
		</view>
		<!-- 业务说明 -->
		<view class="change-into">
			<text class="font32">业务说明</text>
			<view class="words font28 m_t20">
				交易日15:00前购买，发行机构会在下一个交易日确认。15:00之后买入，发行机构需要顺延一个交易日确认(周末和法定节假日均不算交易日)。下单成交后不可撤销。
			</view>
		</view>
		<!-- 购买流程 -->
		<view class="change-into">
			<text class="font32">购买流程</text>
			<view class="words font28 m_t20">
				交易日15:00前购买，发行机构会在下一个交易日确认。15:00之后买入，发行机构需要顺延一个交易日确认(周末和法定节假日均不算交易日)。下单成交后不可撤销。
			</view>
		</view>
		<!-- 立即认购 -->
		<view class="box m_t80">
			<button class="font30" type="primary" @tap="buy">立即认购</button>
		</view>
	</view>
</template>

<script>
	import uniSteps from '@/components/uni-steps/uni-steps.vue'
	
	export default{
		data () {
			return {
				list: [{
						title: '认购开始',
						// desc: '今日'
					}, {
						title: '认购结束'
					}, {
						title: '投资开始'
					}, {
						title: '投资结束'
					}
				],
				listDate: [{
					date: "今日"
				},{
					date: "05-22"
				},{
					date: "05-23"
				},{
					date: "07-05"
				}]
			}
		},
		components: {
			uniSteps
		},
		methods: {
			buy () {
				uni.navigateTo({
					url: "./standard_buy"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	page {
		height: 100vh;
		overflow: hidden;
	}
	
	.container {
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		// 顶部蓝底部分
		.header {
			width: 92vw;
			height: 300upx;
			background: url("../../static/equity_img/blue_bg.png");
			background-size: 100% 100%;
			position: relative;
			padding: 30upx;
			.header_top {
				height: 162upx;
				display: flex;
				align-items: center;
				justify-content: center;
				.header_left,.header_right {
					width: 50%;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
				}
				.header_left {
					border-right: 1upx solid #9caaf9;
				}
			}
			.header_bot {
				display: flex;
				align-items: center;
				color: #cbcffb;
				text {
					padding: 4upx 10upx;
					border: 1upx solid #9caaf9;
				}
			}
		}
		// 产品周期
		.productCycle {
			width: 100%;
			display: flex;
			flex-direction: column;
			padding: 24upx 32upx 30upx 32upx;
			border-bottom: 16upx solid #f5f7f8;
			.uni-steps {
				width: 92vw !important;
			}
			.list_date {
				width: 100%;
				display: flex;
				align-items: center;
				justify-content: space-between;
				color: #6b6c7a;
				margin: 0 auto;
			}
		}
		// 业务说明、购买流程
		.change-into {
			padding: 30upx 32upx 10upx 32upx;
			.words {
				color: #6b6c7a;
			}
		}
		// 立即认购
		.box {
			padding: 0 32upx;
			width: 100%;
			button {
				padding: 10upx 0;
				border: none;
				background: linear-gradient(left, #3e9dff, #5e60e8);
			}
			button::after {
				border: 0;
			}
		}
	}
</style>
